import { defineStore } from "pinia";
import { ref, computed } from "vue";

const storeSetup = () => {
  /* 定义数据--------------------------------------------------------------------- */
  const userInfo = ref({
    userName: "admin",
    userPwd: "123456",
  });

  /* 定义函数--------------------------------------------------------------------- */

  // 返回参数
  return {
    userInfo,
  };
};

// 导出Store
export const useUserStore = defineStore("user", storeSetup, { persist: true });
